﻿using System.Collections.Generic;
using System.Data;
using System.Xml.Linq;

namespace Mota.EditModule
{
    class ComparerByKey : IEqualityComparer<KeyValuePair<string, SqlDbType>>
    {

        #region IEqualityComparer<KeyValuePair<string,SqlDbType>> Members

        public bool Equals(KeyValuePair<string, SqlDbType> x, KeyValuePair<string, SqlDbType> y)
        {
            return string.Equals(x.Key, y.Key);
        }

        public int GetHashCode(KeyValuePair<string, SqlDbType> obj)
        {
            return obj.Key.GetHashCode();
        }

        #endregion
    }
}
